package com.yanshibo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yanshibo.bean.Covo;
import com.yanshibo.bean.Drom;
import com.yanshibo.bean.Floor;
import com.yanshibo.bean.Record;
import com.yanshibo.bean.Student;
import com.yanshibo.bean.Tiaos;

public interface StudentDao {
	//登录查询
	Student selStu(Student student);
	//查询学生住宿
	List<Record> selRec(@Param("sid")Integer sid);
	//查询宿舍
	List<Drom> selDrom(Covo vo);
	
	Drom selById(@Param("id")Integer id);
	
	List<Record> selReById(Integer id);
	//查询所有学生
	List<Student> selStus();
	//查询所有楼层
	List<Floor> selFloor();
	//查询所有宿舍号
	List<Drom> selDroms(@Param("fid")Integer fid);
	//离开原宿舍
	void upRe(Tiaos t);
	//进入新宿舍
	void upRes(Tiaos t);

}
